@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/dept/dept_add.js"]}){
<form id="deptForm" lay-filter="deptForm" class="layui-form model-form">
    <input name="deptId" type="hidden"/>

    <div class="layui-form-item">
        <label class="layui-form-label">上级名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="pid" name="pid" type="hidden">
            <input id="pName" name="pName" placeholder="请输入上级名称" type="text" class="layui-input" lay-verify="required"
                   required autocomplete="off"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="simpleName" placeholder="请输入城市合伙人名称" type="text" class="layui-input" lay-verify="required"
                   required
            />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">全称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="fullName" name="fullName" placeholder="请输入城市合伙人全称" type="text" class="layui-input"
                   lay-verify="required"
                   required
                   autocomplete="off"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">logo</label>
        <div class="layui-input-block">
            <input id="deptLogo" name="logo" type="hidden"/>
            <button type="button" class="layui-btn" id="deteLogo">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">二维码</label>
        <div class="layui-input-block">
            <input id="qrCode" name="qrCode" type="hidden"/>
            <button type="button" class="layui-btn" id="qrCodeUpload">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </button>
        </div>
    </div>
    <!-- 一级代理商 -->
    <div id="partnerDiv" style="display: none">
        <div id="assistList" class="layui-form-item">
            <label class="layui-form-label">协办方logo</label>
            <div class="layui-input-block">
                <input id="assistLogo" name="assist" type="hidden"/>
                <button type="button" class="layui-btn" id="assistLogoUpload">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">赛区名称</label>
            <div class="layui-input-block">
                <input id="title" name="title" placeholder="请输入赛区全称" type="text" class="layui-input"
                       autocomplete="off"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">简介</label>
            <div class="layui-input-block">
                <input name="description" placeholder="请输入备注" type="text" class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input name="sort" placeholder="请输入排序" type="text" class="layui-input"/>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
